package com.mk.cloud.common.domain;

import java.util.List;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.Table;
import org.beetl.sql.core.mapper.BaseMapper;

@Table(name = "cp_ssorole")
@SuppressWarnings("unused")
public class CpSsorole {
    //角色ID
    @AssignID
    private String roleid;
    //能否自定义 1=是 0=否
    private String isadmin;
    //备注
    private String remark;
    //角色编码
    private String rolecode;
    //角色层级(1：企业，2仓库）
    private String rolelevel;
    //角色名字
    private String rolename;
    //公司ID
    private String thrid;

    public CpSsorole() {
    }

    @AssignID
    public String getRoleid() {
        return roleid;
    }

    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }

    public String getIsadmin() {
        return isadmin;
    }

    public void setIsadmin(String isadmin) {
        this.isadmin = isadmin;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRolecode() {
        return rolecode;
    }

    public void setRolecode(String rolecode) {
        this.rolecode = rolecode;
    }

    public String getRolelevel() {
        return rolelevel;
    }

    public void setRolelevel(String rolelevel) {
        this.rolelevel = rolelevel;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getThrid() {
        return thrid;
    }

    public void setThrid(String thrid) {
        this.thrid = thrid;
    }

    public interface Mapper extends BaseMapper<CpSsorole> {
        public List<CpSsorole> getRolesByUser(@Param("userid") String userid);

		public List<CpSsorole> getRolesByCompany(@Param("coid") String coid);

		public List<CpSsorole> getRolesByDepot(@Param("coid") String coid);

		List<CpSsorole> getRolesByRolelevel(@Param("rolelevel") String rolelevel);

		int deleteRole(@Param("roleid")String roleid);
    }
}